<script type="text/javascript">
function get_kelas(){
var a="<?php echo site_url('laporan/get_kelas_lembaga') ?>" + "/" + $("#lembaga").val();
		$.ajax ({
			url: a ,
			success: function(msg){
			$("#target_kelas").html(msg);
			//$("#total_dp").val(msg);
			}
		});
}
$(document).ready(function(){
	get_kelas();
	$('#lembaga').change(function() {
		get_kelas();
		
	});
});
</script>
<div id="page-wrapper">
        <!-- /.row -->
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-default">
                <div class="panel-heading"><span class="judul-page">Laporan Pembayaran Siswa</span></div>
                <div class="panel-body">
					<?php 
						echo form_open('laporan/hasil_laporan', array('class' => 'form-horizontal','target'=>'_blank', 'role' => 'form')); 
					?>
						<div class="form-group">
							<label class="col-sm-3 control-label">Lembaga </label>
							<div class="col-sm-4">
					<?php $js='id="lembaga" class="form-control form-elba input-sm"';

				echo form_dropdown('lembaga',$lembaga,'',$js); ?>
				
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">Kelas </label>
							<div class="col-sm-4">
							<div id="target_kelas">
					<?php $js='id="kelas" class="form-control form-elba input-sm"';

				echo form_dropdown('kelas',$list_kelas,'',$js); ?>
				</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">Periode</label>
							<div class="col-sm-2">
							
							<input type="text" value="<?php echo date('d-m-Y');?>" name="tgl_awal" class="form-control input-sm tanggal" placeholder="Tanggal Awal">
							</div>
							<div class="col-sm-2">
							
							
							<input type="text" value="<?php echo date('d-m-Y');?>" name="tgl_akhir" class="form-control input-sm tanggal" placeholder="Tanggal Akhir">
							
							</div>
						</div>
						<!-- <div class="form-group">
							<label class="col-sm-3 control-label">Export Excel</label>
							<div class="col-sm-2">
							
							<input type="checkbox" value="1" name="excel" >
							</div>
						</div> -->
                      <div class="form-group">
                      	<label class="col-sm-3 control-label"></label>
                        <div class="col-sm-9">
                          <button type="submit" class="btn btn-primary btn-sm">Lihat</button>
                          <button type="reset" class="btn btn-danger btn-sm">Reset</button>
                        </div>
                      </div>
                    <?php 
						echo form_close();
					?>
                </div>
            </div>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /#page-wrapper -->